package main

import "fmt"

func main() {
	defer myfunc01()
	fmt.Println("A")

	defer fmt.Println("B")
	fmt.Println("A")

	name01 := "go"
	defer fmt.Println(name01)
	name01 = "python"
	fmt.Println(name01)

	name02 := "go"
	defer func() {
		fmt.Println(name02)
	}()
	name02 = "python"
	fmt.Println(name02)
}

func myfunc01() {
	fmt.Println("B")
}
